//
//  OuptPrescribeModel.m
//  掌上宏力
//
//  Created by admin on 2017/5/7.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "OuptPrescribeModel.h"

@implementation OuptPrescribeModel

+(OuptPrescribeModel *)setPrescribeModel:(NSDictionary *)dic{
    /*
     //药品名称 DRUG_NAME
     @property (nonatomic,copy) NSString *drugName;
     //数量 AMOUNT
     @property (nonatomic,copy) NSString *amount;
     //单位 UNITS
     @property (nonatomic,copy) NSString *units;
     //服用方法 ADMINISTRATION
     @property (nonatomic,copy) NSString *method;
     //间隔次数(如：一日三次) FREQUENCY
     @property (nonatomic,copy) NSString *frequency;
     */
    OuptPrescribeModel *model = [[OuptPrescribeModel alloc] init];
    model.drugName = dic[@"DRUG_NAME"];
    model.amount = [NSString stringWithFormat:@"%@",dic[@"AMOUNT"]];
    model.units = dic[@"UNITS"];
    model.method = dic[@"ADMINISTRATION"];
    model.frequency = dic[@"FREQUENCY"];
    return model;
}

@end
